<div class="modal-dialog"> 
    <div class="modal-content"> 
        <form role="form"> 
        <div class="modal-header"> 
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> 
            <h4 class="modal-title"># {$name}</h4> 
        </div>
	        <div class="modal-body">
	            <div class="row"> 
	                <div class="col-md-6"> 
	                    <div class="form-group">
	                        <label for="field-1" class="control-label">类型</label> 
                            <select class="form-control" name="type">
                                <option value="0" <!--{if $type == 0}-->selected="selected"<!--{/if}-->>普通</option>
                                <option value="1" <!--{if $type == 1}-->selected="selected"<!--{/if}-->>热门</option>
                            </select>
	                    </div> 
	                </div> 
	                <div class="col-md-6"> 
	                    <div class="form-group">
	                        <label for="field-2" class="control-label">热度值[0-100]</label> 
	                        <input type="text" class="form-control" id="field-2" placeholder="热度值" name="hot" value="{$hot}"> 
	                    </div> 
	                </div> 
	            </div> 
	            <div class="row"> 
	                <div class="col-md-12"> 
	                    <div class="form-group no-margin"> 
	                        <label for="field-7" class="control-label">跳转Action</label> 
	                        <input type="text" class="form-control" id="field-3" placeholder="Action" name="banner_action" value="{$banner[0]['action']}">  
	                    </div> 
	                </div> 
	            </div>
	            <div class="row"> 
	                <div class="col-md-12"> 
	                    <div class="form-group"> 
	                        <label for="field-3" class="control-label">小图</label> 
	                        <input type="text" class="form-control" id="field-3" placeholder="小图展示" name="img_small" value="{$img_small}"> 
		                    <p class="text-info">预览</p>
		                   	<img width="80px" height="80px" alt="{$img_small}" src="{$img_small}">
	                    </div>
	                </div> 
	            </div> 
	            <div class="row"> 
	                <div class="col-md-12"> 
	                    <div class="form-group no-margin"> 
	                        <label for="field-7" class="control-label">背景</label> 
	                        <input type="text" class="form-control" id="field-3" placeholder="背景图" name="banner_img" value="{$banner[0]['image']}">
	                        <p class="text-info">预览</p>
							<img height="100px" alt="{$banner[0]['image']}" src="{$banner[0]['image']}">
	                    </div>
	                </div> 
	            </div>
	            <div class="row"> 
                     <div class="col-md-12"> 
                         <div class="form-group no-margin"> 
                             <label for="field-7" class="control-label">简介</label> 
                             <textarea class="form-control autogrow" id="field-7" placeholder="写下关于话题的简介信息" style="overflow: hidden; word-wrap: break-word; resize: horizontal; height: 104px;" name="desc">{$desc}</textarea> 
                         </div> 
                     </div> 
                 </div> 
	        </div>
	        <div class="modal-footer">
	        	<input type="hidden" name="gid" value="{$id}">
	            <button type="button" class="btn btn-white" data-dismiss="modal">关闭</button> 
	            <button type="button" class="btn btn-info edittopic">保存</button> 
	        </div> 
        </form>
    </div> 
</div>
